﻿using Gnivc.CarDealership.Api.Domain.Primitives;

namespace Gnivc.CarDealership.Api.Domain.Entities;

public class Model : EntityBase
{
    public string Name { get; set; }

    public Guid BrandId { get; set; }

    public Brand Brand { get; set; }
    public ICollection<Vehicle> Vehicles { get; set; }

    private Model()
        : base() { }

    public Model(Guid id, string name, Brand brand)
        : base(id)
    {
        Name = name;

        Brand = brand;
        BrandId = brand.Id;
    }
}